<div class="bjui-pageHeader">
    <form id="pagerForm" data-toggle="ajaxsearch" action="{:U(index)}" method="post">
        <input type="hidden" name="pageCurrent"     value="{$pageCurrent}"/>
        <input type="hidden" name="pageSize"        value="{$pageSize}"/>
        <div class="bjui-searchBar">
            <label>搜索：</label>
            <input type="text" value="{$searchname|default=""}" name="searchname" class="form-control" size="10" />&nbsp;
            <button type="submit" class="btn-default" data-icon="search">查询</button>&nbsp;
            <a class="btn btn-orange" href="javascript:;" data-toggle="reloadsearch" data-clear-query="true" data-icon="undo">清空查询</a>
            <a href="{:U('add',array('dialogid'=>$dialogid))}" class="btn btn-green" data-toggle="dialog"    data-id="dialog">添加菜单</a>
            <div class="pull-right">
                <a href="{:U(del)}" data-toggle="doajaxchecked" data-confirm-msg="确定要删除选中项吗？" data-idname="ids" data-group="ids" class="btn btn-red">删除选中</a>
            </div>
        </div>
    </form>
</div>
<div class="bjui-pageContent">
    <table data-toggle="tablefixed" data-width="100%">
        <thead>
            <tr>
                <th>ID</th>
                <th>菜单名称</th>
                <th>上级分类</th>
                <th>菜单地址</th>
                <th>菜单标识</th>
                <th>菜单类型</th>
                <th>排序</th>
                <th width="26"><input type="checkbox" class="checkboxCtrl" data-group="ids" data-toggle="icheck"></th>
                <th width="100">操作</th>
            </tr>
        </thead>
        <tbody>
            <empty name="list">
            <td colspan="8" class="text-center">Oh! 暂时还没有内容!</td>
            <else />
            <volist name="list" id="vo">
            <tr>
                <td>{$i}</td>
                <td><a href="{:U('index',array('pid'=>$vo['id']))}"  data-toggle="dialog" data-width="800" data-height="400" data-title="{$vo.name}子菜单" data-id="dialog_{$vo.id}">{$vo.name}</a></td>
                <td>{$vo.p_name|default="顶级分类"}</td>
                <td>{$vo.url}</td>
                <td>{$vo.rel}</td>
                <td>{$vo.target}</td>
                <td>{$vo.sort}</td>
                <td>
                    <input type="checkbox" name="ids" data-toggle="icheck" value="{$vo.id}"></td>
                    <td>

                         <a href="{:U('edit',array('id'=>$vo['id'],'dialogid'=>$dialogid))}" class="btn btn-green" data-toggle="dialog" data-title="编辑{$vo.name}" data-id="dialog_{$vo.id}">
                        编辑</a>
                        <a href="{:U('del',array('ids'=>
                        $vo['id']))}" class="btn btn-red" data-toggle="doajax" data-confirm-msg="确定要删除该行信息吗？">删
                        </a>
                    </td>
                </tr>
                </volist>
                </empty>
            </tbody>
        </table>
    </div>
    <div class="bjui-pageFooter">
        <div class="pages">
            <span>每页&nbsp;</span>
            <div class="selectPagesize">
                <select data-toggle="selectpicker" data-toggle-change="changepagesize">
                    <option value="{$pageSize}">{$pageSize}</option>
                    <option value="10">10</option>
                    <option value="20">20</option>
                    <option value="30">30</option>
                    <option value="60">60</option>
                    <option value="100">100</option>
                </select>
            </div>
            <span>共{$total}条</span>
        </div>
        <div class="pagination-box" data-toggle="pagination" data-total="{$total}" data-page-size="{$pageSize}" data-page-current="{$pageCurrent}"></div>
    </div>